const api = require("./api.config.js");
const requestApi = require("./request.js");

//账号密码登录
function Account(PostData, cb){
  requestApi.requestApi(api.Account,PostData,cb);
}

//微信登录
function signcode(PostData, cb) {
  requestApi.requestApi(api.signcode, PostData, cb);
}

//添加银行卡
function Insert(PostData,cb){
  requestApi.requestApi(api.Insert,PostData,cb);
}
//银行卡列表
function queryBank(PostData,cb){
  requestApi.requestApi(api.queryBank,PostData,cb);
}
//提现
function cashOut(PostData,cb){
  requestApi.requestApi(api.cashOut, PostData, cb);
}
//业务员列表
function Salesmanlist(PostData,cb){
  requestApi.requestApi(api.Salesmanlist,PostData,cb);
}
//业务员详情
function Owner(PostData,cb){
  requestApi.requestApi(api.Owner, PostData, cb);
}
//专栏页面
function columnResult(PostData,cb){
  requestApi.requestApi(api.columnResult,PostData,cb);
}
//分院业务员列表详情
function Salesmandetail(PostData,cb){
  requestApi.requestApi(api.Salesmandetail, PostData, cb);
}

//总部概览
function ofheadquarters(PostData, cb) {
  requestApi.requestApi(api.ofheadquarters, PostData, cb);
}

//分院概览
function branch(PostData, cb) {
  requestApi.requestApi(api.branch, PostData, cb);
}

//总院中分院列表
function branchList(PostData, cb) {
  requestApi.requestApi(api.branchList, PostData, cb);
}
//分院订单列表
function branchorder(PostData, cb) {
  requestApi.requestApi(api.branchorder, PostData, cb);
}

//总院订单列表
function ordermanlist(PostData, cb) {
  requestApi.requestApi(api.ordermanlist, PostData, cb);
}

//业务员 用户 我的购课和推广列表
function Course(PostData,cb){
  requestApi.requestApi(api.Course,PostData,cb);
}
//更多专栏
function columnDetail(PostData,cb){
  requestApi.requestApi(api.columnDetail,PostData,cb);
}
//专栏更多
function columnList(PostData,cb){
  requestApi.requestApi(api.columnList,PostData,cb);
}
//分院概览搜索
function searchSalesman(PostData,cb){
  requestApi.requestApi(api.searchSalesman,PostData,cb);
}
//总部订单列表
function ordeist(PostData, cb) {
  requestApi.requestApi(api.ordeist, PostData, cb);
}

//订单列表详情
function Detailorder(PostData, cb) {
  requestApi.requestApi(api.Detailorder, PostData, cb);
}
//支付
function Reqpay(PostData,cb){
  requestApi.requestApi(api.Reqpay, PostData, cb);
}
//订单详情
function Orderdetail(PostData,cb){
  requestApi.requestApi(api.Orderdetail,PostData,cb);
}
//业务员用户我的
function owner(PostData,cb){
  requestApi.requestApi(api.owner, PostData, cb);
}
//业务员用户我的购课列表
function ownercourse(PostData, cb) {
  requestApi.requestApi(api.ownercourse, PostData, cb);
}
//分院我的
function viewBranchRate(PostData,cb){
  requestApi.requestApi(api.viewBranchRate, PostData, cb);
}

// 查看分院提成比例
function branchOwner(PostData, cb) {
  requestApi.requestApi(api.branchOwner, PostData, cb);
}

// 修改分院比率
function editBranchRate(PostData, cb) {
  requestApi.requestApi(api.editBranchRate, PostData, cb);
}

module.exports = {
  signcode,
  ofheadquarters,
  Account,
  Insert,
  queryBank,
  cashOut,
  Salesmanlist,
  Owner,
  columnResult,
  Salesmandetail,
  branch,
  branchList,
  branchorder,
  ordermanlist,
  Course,
  columnDetail,
  columnList,
  searchSalesman,
  Reqpay,
  Orderdetail,
  owner,
  ownercourse,
  ordeist,
  Detailorder,
  Reqpay,
  branchOwner,
  viewBranchRate,
  editBranchRate
}